import request from "@/utils/request";

export function selectAllClass(data){
    return request({
        url:'/class/selectClass',
        method: 'GET',
        params: data
    })
}

export function selectAllCourse(data){
    return request({
        url:'/class/selectAllCourse',
        method: 'GET',
        params: data
    })
}
// 新增班级
export function addClass(data){
    return request({
        url:'/class/addClass',
        method: 'POST',
        data: data
    })
}
// 修改班级
export function updateClass(data){
    return request({
        url:'/class/updateClass',
        method: 'PUT',
        data: data
    })
}
// 修改回显
export function showClass(data){
    return request({
        url:'/class/showClass',
        method: 'GET',
        params: data
    })
}